/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package manager.auxiliares;

import java.awt.KeyboardFocusManager;

/**
 *
 * @author Thiago
 */
public class FocusHelper {

    public static void goToNextFocus() {
        KeyboardFocusManager keyboardFocusManager = KeyboardFocusManager.getCurrentKeyboardFocusManager();
        keyboardFocusManager.focusNextComponent();
    }

    public static void goToPrevFocus() {
        KeyboardFocusManager keyboardFocusManager = KeyboardFocusManager.getCurrentKeyboardFocusManager();
        keyboardFocusManager.focusPreviousComponent();
    }
}
